package com.springtools;

import java.io.File;
import org.springframework.util.ResourceUtils;

public class ResourceUtilsExample {
	public static void main(String[] args) throws Throwable {
		
		File clsFile = ResourceUtils.getFile("classpath:file1.txt");
		System.out.println(clsFile.isFile());

		String httpFilePath = "file:D:/WORKSPACE/MyEclipse/SpringTools/bin/file1.txt";
		File httpFile = ResourceUtils.getFile(httpFilePath);
		System.out.println(httpFile.isFile());
	}
}
